home *** CD-ROM | disk | FTP | other *** search
- # note that $modelPath is automagically set to be the complete path
- # name of whereever this .mdl file wrapper is located
- #
- source $modelPath/initialDefines.eve
-
- # note that since "source" is a built-in tcl command, we needed to
- # give it the full path name of the previous file so it could load it.
- # In the next command, though, since "loadControlPanel" is a new eve
- # command, it is smart enough to append the value of $modelPath to any
- # file that doesn't start with "/"
- #
- loadControlPanel controls.nib
-
- startShape aSphere
- EveCmd {Color $sphere(color)}
- EveCmd {Scale $sphere(xScale) $sphere(yScale) $sphere(zScale)}
- EveCmd {Translate $sphere(xTranslate) $sphere(yTranslate) $sphere(zTranslate)}
- EveCmd {Rotate $sphere(xRotate) 1 0 0 }
- EveCmd {Rotate $sphere(yRotate) 0 1 0 }
- EveCmd {Rotate $sphere(zRotate) 0 0 1 }
- SolidBegin primitive
- EveProc {drawInsideAndCaps $sphere(thetaMax) $sphere(zMin) $sphere(zMax) $sphere(radius) $sphere(innerX) $sphere(innerY)}
- EveCmd {Sphere $sphere(radius) $sphere(zMin) $sphere(zMax) $sphere(thetaMax)}
- SolidEnd
- endShape
-